﻿using Common.Contract.Authentication.Record;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Authentication.Model.ViewModel.System
{
    public class ObjectViewModel : GenerateViewMode, IViewModel
    {
        public string ObjectIdentifier { get; set; }
        public string ParentIdentifier { get; set; }

        [Required(ErrorMessage = "Object name is required.")]
        [Display(Name = "Object name:")]
        public string ObjectName { get; set; }

        [Display(Name = "Link to:")]
        public string ObjectUrl { get; set; }

        [Display(Name = "Icon class:")]
        public string Icon { get; set; }

        [Display(Name = "Is substitution")]
        public bool IsSubstitution { get; set; }

        public List<ObjectRecord> Objects { get; set; }
    }
}
